/** \file    io_legacy.h
  * \brief   Defines several io functions for old (legacy) applications.
  * \date    2003
  * \author  Fedor Chelnokov
  * \version $Header: /home/cscom1r4/cvsroot/cs/include/imglib/io_legacy.h,v 1.1 2004/02/04 14:43:24 cscom1r4 Exp $
  */

#ifndef _io_legacy_h_
#define _io_legacy_h_

#include "io.h"

namespace img {

/////////////////////////////////////////////////////////////////////
// read/write using Our methods as well as both Qt and ImageMagick //
/////////////////////////////////////////////////////////////////////

size_point ping(const std::string & filename);
void read(const std::string & filename, byte_image & img);
void write(const std::string & filename, const byte_image & img, const std::string & format, bool alpha = false);
///list of extensions
void formats(ext_vec & f, format_type t);
///semicolon separated search list "*.gif;*.bmp"
std::string search_str(format_type t);


} //namespace img

#endif //_io_legacy_h_
